<?php defined('TSTP_PACKAGE') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Test_Types
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: range_string.tstp.php 252 2009-05-24 17:18:32Z molotsoft@gmail.com $
* @link $HeadURL: http://test-types.googlecode.com/svn/tags/2.0.3/types/string/range_string.tstp.php $
*/


function tstp_range_string($var, $minlen = NULL, $maxlen = NULL) {
	return is_string($var) && in_range($minlen, strlen($var), $maxlen);
}

function tstp_rstring($var, $minlen = NULL, $maxlen = NULL) { return tstp_range_string($var, $minlen, $maxlen); }
function tstp_rstr($var, $minlen = NULL, $maxlen = NULL) { return tstp_range_string($var, $minlen, $maxlen); }
function tstp_rs($var, $minlen = NULL, $maxlen = NULL) { return tstp_range_string($var, $minlen, $maxlen); }


?>